<!DOCTYPE html> 
<html> 
<head> 
	<meta  charset="utf-8" />
	<title>标题</title>
	<meta name="viewport" content="width=device-width, initial-scale=1"> 
	<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
	<script src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>
	<script src="__PUBLIC__/js/jquery.validate.js"></script>
    <script src="__PUBLIC__/js/messages_cn.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/Css/jquery.validate.css" />
	<link rel="stylesheet" href="__PUBLIC__/Css/jquery.mobile-1.2.0.css" />		
	<script src="__PUBLIC__/js/jquery.mobile-1.2.0.js"></script>    
    <script type="text/javascript">
    $().ready(function() {
    	 $("#businessedit").validate();
    	});
    </script>
</head>
<body>
<div data-role="page"> 
　<div data-role="header" data-position="fixed">　<a href="__URL__/index" rel="external" data-role="button" data-icon="back">后退</a>
           <div style="text-align:center;" >修改业务</div>   
           <a href="#" data-role="button" data-icon="refresh">刷新</a></div> 
　 <div data-role="content">
  <form method="post" action="__URL__/update"  data-ajax="false" id="businessedit">
  <input type="hidden" name="userid" value="<?php echo $_SESSION[C('USER_AUTH_KEY')] ?>">
		<input type="hidden" name="id" value="{$vo.id}" >
   <input type="hidden" name="userid" value="<?php echo $_SESSION[C('USER_AUTH_KEY')] ?>"/>     
  <table align="center">
	   <tr>
	    <td><label><em>*</em>公司名称：</label></td>
	    <td><input name="companyname" type="text" class="required" value="{$vo.companyname}" id="companyname" /></td>
	   </tr>
	 <tr>
	 <td><label>地址：</label></td>
	 <td><input type="text" name="address" value="{$vo.address}" /></td>
	 </tr>
     <tr>
      <td><label><em>*</em>联系人：</label></td>
      <td><input name="linkname" class="required" id="linkname" type="text" value="{$vo.linkname}"/></td>
     </tr>
	 <tr>
	  <td><label>电话：</label></td>
	  <td><input type="text" name="phone" class="phone" value="{$vo.phone}"/>		</td>
	 </tr>
	 <!--  
	 <tr>
	 <td><label>产品名称：</label></td>
	 <td><input name="productname" type="text" value="{$vo.productname}"/></td>
	 </tr>
	 <tr>
	   <td><label>产品单位：</label></td>
	   <td><input name="unit" type="text" value="{$vo.unit}"/></td>
	 </tr>
	 <tr>
	 <td><label>购买数量：</label></td>
	 <td><input type="text" name="quantity" class="digits" value="{$vo.quantity}"/></td>
	 </tr>
	 -->
	 <tr>
			<td><label>业务类型：</label></td><td><select name="type" id="type" data-mini="true"
							class="required">
								<option value="购进合同" <eq name="vo.type" value="购进合同">selected</eq>>购进业务</option>
								<option value="销售合同" <eq name="vo.type" value="销售合同">selected</eq>>销售业务</option>
						</select></td>
			</tr>	
	 <tr>
	 <td><label>供货周期：</label></td><td><input type="text" name="leadtime" value="{$vo.leadtime}"/></td>
	 </tr>
	 <tr>
	  <td><label>查看人姓名：</label></td>
	  <td><input type="text" name="viewnames" value="{$vo.viewnames}" readonly/></td>
	 </tr>
	 <tr>
	  <td><label>备注：</label></td>
	  <td><textarea name="note" cols="58"  rows="3">{$vo.note}</textarea></td>
	 </tr>
	 <volist name="goods" id="vos">
	 <tr>
    <td colspan="2">
     产品名称:{$vos.goodname}&nbsp;&nbsp;产品价格:{$vos.price}&nbsp;&nbsp; 
    购买数量:{$vos.quality}&nbsp;&nbsp;金额:{$vos.totalprice}&nbsp;&nbsp;<a href="__URL__/goodsedit/id/{$vos.id}">修改</a>||<a href="__URL__/goodsdel/id/{$vos.id}/bid/{$vo.id}">删除</a> </td>
     </tr>
   </volist>

	 
	 		
	<tr>
		<td colspan="2">
		<div data-type="horizontal" data-role="controlgroup"  style="text-align:center;">
			<input type="submit" value="保存" data-icon="check" /><a href="__URL__/index" rel="external" data-icon="back" data-role="button" />取消</td>
			</div>
	</tr>
</table>


</div> 
</body>
</html>

